package jsyf.oa.entity.device;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by y on 2018/7/6.
 */
@Entity
@Table(name = "T_DVC_BRAND_BANK", schema = "oa", catalog = "")
public class BrandBankEntity extends BaseEntity implements Serializable {

    private String brandId;//品牌ID
    private String intermediaryBank;//收款银行/开户行
    private String bankAccount;//银行账号
    private String bankName;//银行名称

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getIntermediaryBank() {
        return intermediaryBank;
    }

    public void setIntermediaryBank(String intermediaryBank) {
        this.intermediaryBank = intermediaryBank;
    }

    public String getBankAccount() {
        return bankAccount;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("BRAND_ID", this.getBrandId());
        obj.put("INTERMEDIARY_BANK", this.getIntermediaryBank());
        obj.put("BANK_ACCOUNT", this.getBankAccount());
        obj.put("DEL_FLAG", this.getDelFlag());
        obj.put("BANK_NAME", this.getBankName());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_DVC_BRAND_BANK";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("BRAND_ID", "brandId");
        obj.put("INTERMEDIARY_BANK", "intermediaryBank");
        obj.put("BANK_ACCOUNT", "bankAccount");
        obj.put("BANK_NAME", "bankName");
        return obj;
    }
}
